#pragma once 
#include<vector>
#include<list>
#include<deque>
namespace cxq
{
	template<class T ,class Container = deque<T> >
	class queue
	{
	public:
		void push(const T & x)
		{
			_con.push_back(x);
		}
		void pop()
		{
			_con.pop_front();
		}
		T&	front()
		{
			return _con.front();
		}
		T& back()
		{
			return _con.back();
		}
		size_t size()
		{
			return _con.size();
		}
		bool empty()
		{
			return _con.empty();
		}
	private:

		Container _con;
	};
	void test_queue1()
	{
		queue<int, list<int> > q ;
		q.push(1);
		q.push(2);
		q.push(3);
		q.push(4);
		while (!q.empty())
		{
			cout << q.front() << " ";
			q.pop();
		}
		cout << endl;

	}
}